<html>
<head>
<title>TestPhpCtls</title>

		<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.5.custom.css" rel="stylesheet" />

		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>
</head>
<body>

<?php

include "PhpCtls.php";
echo "<br /><h2>CtlText</h2><br />";
$testtext = new CtlText(array('name'=>'testname',
 'id'=>'testid',
 'value'=>'testValue',
'set_on_change'=>'alert(\'Hello\')'), 'TestValue');
 print $testtext->render();
echo "<br /><h2>MakePhpCtl:CtlText</h2><br />"; 

print MakePhpCtl('CtlText',array('name'=>'testname',
 'id'=>'testid',
 'value'=>'testValue',
 'size'=>'2',
'set_on_change'=>'alert(\'Hello\')'), 'secibdtelue'); 

echo "<br /><h2>CtlSelect</h2><br />";
$testselect = new CtlSelect(array('name'=>'testdropdown', 'id'=>'testddid', 'set_on_change'=>'alert(\'Hello\')'),'key2', 
array(1=>array('showvalue'=>'thing1', 'keyvalue'=>'key1'),
2=>array('showvalue'=>'thing2', 'keyvalue'=>'key2')));
print $testselect->render();

echo "<br /><h2>MakePhpCtl:CtlSelect</h2><br />";

print MakePhpCtl('CtlSelect',
array('name'=>'testdropdown',
 'id'=>'mktestddid',
 'set_on_change'=>'alert(\'Hello\')'),
 'key2', 
array(1=>array('showvalue'=>'thing1', 'keyvalue'=>'key1'),
2=>array('showvalue'=>'thing2', 'keyvalue'=>'key2')));

echo "<br /><h2>CtlJQDate</h2><br />";
$testdate = new CtlJQDate(array('name'=>'testdate',
 'id'=>'jqDateid',
 'value'=>'2010-09-02',
'set_on_change'=>'alert(\'Hello\')'), '2010-07-06');
 print $testdate->render();

 echo "<br /><h2>MakePhpCtl:CtlJQDate</h2><br />";
 print MakePhpCtl('CtlJQDate',array('name'=>'testdate',
 'id'=>'jqDateid2',
 'value'=>'2010-09-02',
'set_on_change'=>'alert(\'Hello\')'), '1977-07-06');

echo "<br /><h2>CtlTextArea</h2><br />";

$testtext = new CtlTextArea(array('name'=>'testaname',
 'id'=>'testaid',
 'value'=>'testaValue',
'set_on_change'=>'alert(\'Hellota\')'), 'TestArea line
Stuff multiline here
Value');
 print $testtext->render();
 
 echo "<br /><h2>CtlCheckBox</h2><br />";

$testcb = new CtlCheckbox(array('name'=>'testaname',
 'id'=>'testaid',
 'value'=>'testaValue',
'set_on_change'=>'alert(\'Hellota\')'), 0);
print $testcb->render();

echo "<br /><h2>CtlSpan</h2><br />";
$testsp = new CtlSpan(array('name'=>'testaname',
 'id'=>'testaid',
 'value'=>'testaValue'), 'Stuff In Span Here');
print $testsp->render();

echo "<br /><h2>MakePhpCtl:CtlSpan</h2><br />";
print MakePhpCtl('CtlSpan',array('name'=>'testaname',
 'id'=>'testaid',
 'value'=>'testaValue'), 'Stuff In Span Here called with MakePhpCtl');

?>
</body>
